package com.example.demo.mapper;

import com.example.demo.pojo.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    // 查询所有部门
    public List<Department> findAll();
    
    // 根据ID查询部门
    public Department findById(int id);
    
    // 新增部门
    public int saveDepartment(Department department);
    
    // 更新部门
    public int updateDepartment(Department department);
    
    // 删除部门
    public int deleteDepartment(int id);
}